# -*- coding:utf-8 -*-

def intersecao(l1, l2):
    if len(l1) == 0 or len(l2) == 0:
        return []

    return [e for e in l1 if e in l2]


def diferenca(l1, l2):
    if len(l1) == 0:
        return []

    if len(l2) == 0:
        return l1

    return [e for e in l1 if e not in l2]
